import 'package:dio/dio.dart';

class Request {
  static Dio _instance;

  static Dio getInstance() {
    if (_instance == null) {
      Options options = new Options(
          baseUrl: 'https://5b9a0979d203ad0014619c0d.mockapi.io/api/v1/flutter',
          connectTimeout: 5000,
          receiveTimeout: 5000,
          responseType: ResponseType.JSON);
      _instance = new Dio(options);
    }
    return _instance;
  }
}
